package mao.exaimnation.ziguang;

import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;

public class Main {


    private static int ch[] = { 1,2,3,5,6,7,9,12,16};


    static int[] insertNum(int number) {
        int[] newCh = new int[ch.length+1];
        int index = ch.length-1;
        while (index>=0 && ch[index] >= number){
            newCh[index+1] = ch[index];
            index--;
        }
        newCh[index+1] = number;
        while (index>=0 ){
            newCh[index] = ch[index];
            index--;
        }
        return newCh;
    }
    /******************************结束写代码******************************/


    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int[] res;

        int _number;
        _number = Integer.parseInt(in.nextLine().trim());

        res = insertNum(_number);
        for(int res_i=0; res_i < res.length; res_i++) {
            System.out.print(String.valueOf(res[res_i]));
            if(res_i!=res.length-1){
                System.out.print(",");
            }
        }

    }
}
